package ipad.asia.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.experimental.Accessors;

/**
 * @Description  
 * @Author  冯东旺
 * @Date 2021-03-17 15:24:47 
 */

@Entity
@Data
@Accessors(chain = true)
@Table ( name ="consumer")
public class Consumer implements Serializable {


	@Id
   @Column(name = "id" )
	private int id;

   @Column(name = "user" )
	private String user;

   @Column(name = "password" )
	private String password;

   @Column(name = "sex" )
	private String sex;

   @Column(name = "email" )
	private String email;

   @Column(name = "phone" )
	private String phone;

   @Column(name = "address" )
	private String address;

   @Column(name = "signature" )
	private String signature;

   @Column(name = "date" )
	private LocalDateTime date;
	@Column(name = "salt" )
	private String salt;
}
